<template>
	<!-- 商品过期 待封装 -->
	<uni-popup ref="expire1" @change="onExpireChange">
		<view class="EP-wrap">
			<view class="ep-title">
				所选商品含有已下架商品 请重新选择商品
			</view>

			<view class="ep-img">
				<image src="@/static/home/cart-empty1.png" mode="widthFix" class="wrap-sty"></image>
			</view>

			<view class="EP-btn" @click="onRemove">
				确定
			</view>
		</view>
	</uni-popup>
</template>

<script>
	export default {
		name: "OffShelf",
		data() {
			return {

			};
		},

		methods: {
			// 二次弹窗，判断当前购物车内是否包含过期商品
			onExpireChange() {
				this.$refs.expire1.open('center')
			},

			// 点击确定
			onRemove() {
				this.$refs.expire1.close()
				uni.navigateBack()
			},
		}
	}
</script>

<style lang="scss" scoped>
	// 包含下架商品
	.EP-wrap {
		margin: 0 auto;
		width: 578rpx;
		height: 696rpx;
		background: #FFFFFF;
		border-radius: 24rpx;
		text-align: center;

		.ep-title {
			margin: 0 auto;
			margin-top: 300rpx;
			padding-top: 60rpx;
			width: 440rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 40rpx;
			color: #262626;
			line-height: 56rpx;
			text-align: center;
			font-style: normal;
			text-transform: none;
		}

		.ep-img {
			margin-top: 80rpx;

			image {
				width: 240rpx;
				height: 240rpx;
				;
			}
		}

		.EP-btn {
			margin: 0 auto;
			margin-top: 80rpx;
			width: 498rpx;
			height: 84rpx;
			background: $uni-color-theme;
			border-radius: 16rpx;
			font-size: 32rpx;
			display: flex;
			color: #fff;
			justify-content: center;
			align-items: center;
		}
	}
</style>